package com.gistone.commis.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;

import java.util.Date;
@Setter
@ToString
@Getter
@AllArgsConstructor
@NoArgsConstructor
public class Attendance {
    private Integer attId;

    private Integer personId;
    private Person person;

    private Integer communityId;

    private Integer departId;

    private Integer userId;
    private  User user;

    private String personName;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date registerTime;

    private Double leaveAffairs;

    private Double leaveSick;

    private Double leaveYear;

    private Double leaveMaternity;

    private Double leaveMarriage;

    private Double leaveFuneral;

    private Integer attYear;

    private Integer attMonth;

    private String reserveA;

    private String reserveB;

    public Attendance(Integer attId, Integer personId, Integer communityId, Integer departId, Integer userId, String personName, Date registerTime, Double leaveAffairs, Double leaveSick, Double leaveYear, Double leaveMaternity, Double leaveMarriage, Double leaveFuneral, Integer attYear, Integer attMonth, String reserveA, String reserveB) {
        this.attId = attId;
        this.personId = personId;
        this.communityId = communityId;
        this.departId = departId;
        this.userId = userId;
        this.personName = personName;
        this.registerTime = registerTime;
        this.leaveAffairs = leaveAffairs;
        this.leaveSick = leaveSick;
        this.leaveYear = leaveYear;
        this.leaveMaternity = leaveMaternity;
        this.leaveMarriage = leaveMarriage;
        this.leaveFuneral = leaveFuneral;
        this.attYear = attYear;
        this.attMonth = attMonth;
        this.reserveA = reserveA;
        this.reserveB = reserveB;
    }


}